<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>计算器属性</title>
    <script src="https://unpkg.com/vue"></script>
</head>

<body>
<div id="vue-app">
    <h1>Computed 计算属性</h1>
    <button v-on:click="a++">Add to A</button>
    <button v-on:click="b++">Add to A</button>
    <p>A - {{a}}</p>
    <p>B - {{b}}</p>
    <p>Age + A ={{addToA}}</p>
    <p>Age + B ={{addToB}}</p>
</div>

<script src="c.js"></script>
</body>
</html>